﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EWineShop.Service.Contracts;
using EWineShop.Service;
using Common.Logging;
using JCode.Common.Logging;

namespace EWineShop.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        public IAdminUserService IAdminUser { get; set; }
        public IIDCreaterService IIDCreater { get; set; }
        //public IAdminUserService IAdminUser = new AdminUserService();
        public string Message { get; set; }
        public ILog log { get; set; }
        public ActionResult Index()
        {
            ViewBag.Message = Message;
            //return View();
            var list = IAdminUser.GetAll();
           var a= IAdminUser.GetByUserID(1012);
           IAdminUser.DeleteByUserID(1001);
            //var b = IIDCreater.GetByIDName("MemberID");
            return View();
        }

    }
}
